@import './variables.module.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';
@import './btn.scss';
@import './ruoyi.scss';
@import './font.scss';
@import './iconfont.scss';
@import './vxe-table.scss';

// :root {
//   --el-font-size-base: 16px; /* 设置基础字体大小 */
// }

body {
  height: 100%;
  margin: 0;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}



label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

.no-padding {
  padding: 0px !important;
}

.padding-content {
  padding: 4px 0;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.fr {
  float: right;
}

.fl {
  float: left;
}

.pr-5 {
  padding-right: 5px;
}

.pl-5 {
  padding-left: 5px;
}

.block {
  display: block;
}

.pointer {
  cursor: pointer;
}

.inlineBlock {
  display: block;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

aside {
  background: #eef1f6;
  padding: 8px 24px;
  margin-bottom: 20px;
  border-radius: 2px;
  display: block;
  line-height: 32px;
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  color: #2c3e50;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  a {
    color: #337ab7;
    cursor: pointer;

    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}

//main-container全局样式
.app-container {
  padding: 8px;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: white;

  .toolbar-section {
    width: 100%;
    padding-bottom: 5px;
  }

  .table-section {
    flex-grow: 1;
    overflow: auto;
  }

  .pagination-container {
    .el-pagination {
      --el-pagination-font-size: 12px;
    }

    .el-select__wrapper {
      font-size: 12px;
    }
  }
}

.el-select-dropdown__item {
  font-size: 12px;
}

.components-container {
  margin: 30px 50px;
  position: relative;
}

.text-center {
  text-align: center
}

.sub-navbar {
  height: 50px;
  line-height: 50px;
  position: relative;
  width: 100%;
  text-align: right;
  padding-right: 20px;
  transition: 600ms ease position;
  background: linear-gradient(90deg, rgba(32, 182, 249, 1) 0%, rgba(32, 182, 249, 1) 0%, rgba(33, 120, 241, 1) 100%, rgba(33, 120, 241, 1) 100%);

  .subtitle {
    font-size: 20px;
    color: #fff;
  }

  &.draft {
    background: #d0d0d0;
  }

  &.deleted {
    background: #d0d0d0;
  }
}

.link-type,
.link-type:focus {
  color: #337ab7;
  cursor: pointer;

  &:hover {
    color: rgb(32, 160, 255);
  }
}

.filter-container {
  padding-bottom: 10px;

  .filter-item {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 10px;
  }
}

.top-right-btn {
  font-weight: bold;

  .refresh,
  .help,
  .export {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .refresh:hover {
    background-color: rgba(11, 16, 25, .06);
  }

  .help:hover {
    background-color: rgba(11, 16, 25, .06);
  }

  .export:hover {
    background-color: rgba(11, 16, 25, .06);
  }
}


@keyframes breathe {
  0% {
    transform: scale(1);
    box-shadow: 0 0 2px #00dd00;
  }

  50% {
    transform: scale(1.5);
    box-shadow: 0 0 10px #00dd00;
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 2px #00dd00;
  }
}

.breath-light {
  border-radius: 50%;
  width: 10px;
  height: 10px;
  display: inline-block;
  line-height: 20px;
  margin-right: 10px;
  background-color: #ccc;

  &.active {
    background-color: #00dd00;
    animation: breathe 3s linear infinite;
  }
}

.el-tabs {
  background: white;

  .el-tabs__header {
    margin: 0;

    .el-tabs__nav-wrap {
      padding: 0 20px;
    }
  }
}

.app-main {
  /* 50= navbar  50  */
  min-height: calc(100vh - 50px);
  width: 100%;
  position: relative;
  overflow: auto;

}

.main-show-container {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100%;

  >.el-tabs {
    height: 100%;
    display: flex;
    flex-direction: column;

    >.el-tabs__content {
      flex-grow: 1;

      .el-tab-pane {
        height: 100%;
      }
    }
  }
}

.el-dialog {
  position: relative;
  margin-top: 7vh;
  margin: 0 auto 50px;
  border-radius: 4px;
  box-shadow: 0 1px 3px;
  box-sizing: border-box;

  .el-dialog__header {
    padding: 16px 20px;
    border-bottom: 1px solid #DCDFE6;
    // display: flex;
    // align-items: center;

    .el-dialog__title {
      font-size: 16px;
      font-weight: bold;
      position: relative;
      padding-left: 5px;
    }

    .el-dialog__headerbtn {
      padding: 20px 16px;
    }
  }

  padding: 0%;
}

.ui_el_dialog_body {
  padding: 24px 24px 0;
}

.ui_el_dialog_footer {
  position: sticky;
  bottom: 10px;
  text-align: right;
  background-color: #fff;
  // padding: 20px 24px;
  padding: 0px 24px 20px 0px;
  border-radius: 4px;
}

.from-title-style {
  height: 24px;
  line-height: 24px;
  font-size: 14px;
  font-weight: 700;
  color: #0b1019;
  padding-left: 10px;
  position: relative;
  margin-bottom: 12px;

  &:before {
    content: ' ';
    position: absolute;
    width: 2px;
    height: 14px;
    background-color: #005bf5;
    transform: translateY(-50%);
    position: absolute;
    top: 50%;
    left: 0;
  }
}

.el-form {
  .el-form-item__label {
    font-size: 12px;
    line-height: 32px;
    color: #33363c;
    font-weight: normal;
  }
}

.el-select {
  .el-select__selection {
    font-size: 12px;
  }

  .el-select__placeholder.is-transparent {
    font-size: 12px;
  }
}

.el-input {
  .el-input__inner {
    font-size: 12px;
  }
}

.el-text,
.el-button {
  font-size: 12px;
}

.vxe-table .vxe-header--column {
  background: #fff !important;
  height: 35px;
  border-right: 1px solid #d9dddf //解决表头列间隔竖线丢失的问题
}

.el-dropdown-menu {
  .el-dropdown-menu__item {
    font-size: 12px;
  }
}
.resources{
  width: 74px;
  height: 32px;
background-color: #005bf5;
color: #fff;
}
.window{
  height: 500px ;
}
.dialog-footer {
  margin-top: 50px;
}

.page-container {
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}


.lr-layout {
  box-sizing: border-box;
  display: flex;
  .right {
    flex-grow: 1;
  }
}

